﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="CheckInventory.aspx.cs" Inherits="EWebsite.Admin.Partnerships.CheckInventory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <asp:GridView ID="grvList" runat="server" AutoGenerateColumns="False" 
            EnableModelValidation="True" Width="100%">
            <Columns>
                <asp:BoundField DataField="ProductID" HeaderText="Product ID" />
                <asp:TemplateField HeaderText="Product name">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("ProductName") %>'></asp:Label>
                        <br />
                        <asp:Image ID="Image1" runat="server" 
                            ImageUrl='<%# Eval("ProductPhotoURL") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ProductPrice" HeaderText="Price" />
                <asp:BoundField DataField="BeginDate" HeaderText="Begin date" />
                <asp:BoundField DataField="EndDate" HeaderText="End date" />
            </Columns>
        </asp:GridView>
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            Text="Update inventory" />
    </p>
</asp:Content>
